Skip to content

Comments

(Refactor) Replace instances of Carbon::now() with Laravel's now() helper#5270

Merged
HDVinnie merged 1 commit intodevelopmentfrom
carbon
Feb 12, 2026
Merged

(Refactor) Replace instances of Carbon::now() with Laravel's now() helper#5270
HDVinnie merged 1 commit intodevelopmentfrom
carbon

Conversation

@HDVinnie
Copy link
Collaborator

No description provided.

@what-the-diff
Copy link

what-the-diff bot commented Feb 11, 2026

PR Summary

  • Simplified Timing Function
    Eliminated the use of Carbon::now() in favor of now(), resulting in a more streamlined code across multiple files.
  • Removed Unused Imports
    Got rid of superfluous Carbon references, cleaning up code and increasing efficiency.
  • Enhanced Performance in Timestamp Handling
    Replaced Carbon::now() instances with now() in various controllers, leading to performance improvements and easier timestamp management.
  • Consistent Date and Time Handling
    Ensured uniform use of now() to handle time and date operations for various functions, including setting expiration dates and timestamps, increasing the readability and clarity of the code.
  • Improved Warnings and Notifications Handling
    Adjustments made for managing user warnings and notifications timestamps from Carbon::now()->addDays() to now()->addDays(), making code more succinct.
  • Updated Timestamp Tracking in Processes
    Last login and failed login times are now tracked using now(), replacing the more complex Carbon::now(), simplifying processes and enhancing maintainability.
  • Audit Timestamp Consistency
    Incorporated now()->format() for audit timestamp recording in the Auditable trait, bringing consistency across all audit entries.

@HDVinnie HDVinnie merged commit 6af8f5c into development Feb 12, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants